USE [OHNEW]
GO

/****** Object:  Table [dbo].[P_Right]    Script Date: 11/16/2012 18:27:11 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[P_Right](
	[ID] [varchar](50) NOT NULL,
	[Code] [varchar](50) NOT NULL,
	[Name] [varchar](50) NOT NULL,
	[PID] [varchar](50) NOT NULL,
	[IsCustom] [int] NOT NULL,
	[Action] [varchar](100) NULL,
	[NeedSeparator] [int] NOT NULL,
	[Parameters] [varchar](100) NULL,
	[NeedRightControl] [int] NOT NULL,
	[RightExpression] [varchar](100) NULL
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[P_Right] ADD  DEFAULT ((0)) FOR [IsCustom]
GO

ALTER TABLE [dbo].[P_Right] ADD  DEFAULT ((0)) FOR [NeedSeparator]
GO

ALTER TABLE [dbo].[P_Right] ADD  DEFAULT ((0)) FOR [NeedRightControl]
GO


